Skip to content

fix: use sparkImage.pullPolicy in all containers - #764

Merged
sweb merged 7 commits into
mainfrom
fix/use-pull-policy
Sep 10, 2026
Merged

sweb merged 7 commits into
mainfrom
fix/use-pull-policy

Conversation

@sweb

@sweb sweb commented Sep 3, 2026 •

Copy link
Copy Markdown
Member

Description

Solves #762

sparkImage.pullPolicy is no longer ignored by the driver and executor containers, the Spark Connect executors and the truststore and job init containers, and it now covers the user-supplied spec.image too.

This has a breaking component, because this now leads to the default pull policy of Always for driver and executor.

Definition of Done Checklist

  • Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant
  • Please make sure all these things are done and tick the boxes

Author

  • Changes are OpenShift compatible
  • CRD changes approved
  • CRD documentation for all fields, following the style guide.
  • Helm chart can be installed and deployed operator works
  • Integration tests passed (for non trivial changes)
  • Changes need to be "offline" compatible
  • Links to generated (nightly) docs added
  • Release note snippet added

Reviewer

  • Code contains useful comments
  • Code contains useful logging statements
  • (Integration-)Test cases added
  • Documentation added or updated. Follows the style guide.
  • Changelog updated
  • Cargo.toml only contains references to git tags (not specific commits or branches)

Acceptance

  • Feature Tracker has been updated
  • Proper release label has been added
  • Links to generated (nightly) docs added
  • Release note snippet added
  • Add type/deprecation label & add to the deprecation schedule
  • Add type/experimental label & add to the experimental features tracker

@sweb
sweb force-pushed the fix/use-pull-policy branch 3 times, most recently from a7f8906 to fd3967e Compare September 3, 2026 13:04
@sweb sweb self-assigned this Sep 3, 2026
@sweb
sweb marked this pull request as ready for review September 3, 2026 13:08
@sweb sweb moved this to Development: Waiting for Review in Stackable Engineering Sep 3, 2026
@adwk67
adwk67 self-requested a review September 8, 2026 10:10
@adwk67 adwk67 moved this from Development: Waiting for Review to Development: In Review in Stackable Engineering Sep 8, 2026
@sweb
sweb force-pushed the fix/use-pull-policy branch from e7a1601 to fb03739 Compare September 8, 2026 10:38
Comment thread docs/modules/spark-k8s/pages/usage-guide/job-dependencies.adoc Outdated
Comment thread docs/modules/spark-k8s/pages/usage-guide/job-dependencies.adoc Outdated
Comment thread docs/modules/spark-k8s/pages/usage-guide/job-dependencies.adoc Outdated
Comment thread rust/operator-binary/src/connect/controller/build/executor.rs Outdated
Comment thread rust/operator-binary/src/connect/controller/build/executor.rs Outdated
Comment thread rust/operator-binary/src/connect/controller/build/executor.rs Outdated
Comment thread rust/operator-binary/src/connect/s3.rs
Comment thread docs/modules/spark-k8s/pages/usage-guide/job-dependencies.adoc Outdated

@sweb sweb left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for your review. I was able to improve it quite a bit - and remove a bug I didn't really understand / anticipate.

Comment thread docs/modules/spark-k8s/pages/usage-guide/job-dependencies.adoc Outdated
Comment thread docs/modules/spark-k8s/pages/usage-guide/job-dependencies.adoc Outdated
Comment thread rust/operator-binary/src/connect/controller/build/executor.rs Outdated
Comment thread rust/operator-binary/src/connect/controller/build/executor.rs Outdated
Comment thread rust/operator-binary/src/connect/s3.rs
@sweb
sweb force-pushed the fix/use-pull-policy branch from c9ae743 to 769d55f Compare September 10, 2026 11:31

@adwk67 adwk67 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I added a fix to test (previously broken by me) and ran all nightlies just to be sure:

--- PASS: kuttl (2592.62s)
    --- PASS: kuttl/harness (0.00s)
        --- PASS: kuttl/harness/spark-pi-private-s3_openshift-false_spark-4.1.2 (354.14s)
        --- PASS: kuttl/harness/spark-connect-kerberos_openshift-false_iceberg-latest-1.11.0_hive-iceberg-4.0.0_spark-connect-4.1.2_krb5-1.21.1_kerberos-realm-CLUSTER.LOCAL_s3-use-tls-true (823.55s)
        --- PASS: kuttl/harness/custom-log-directory_openshift-false_spark-4.1.2_hdfs-latest-3.5.0_zookeeper-latest-3.9.5 (594.24s)
        --- PASS: kuttl/harness/spark-examples_openshift-false_spark-4.1.2 (51.72s)
        --- PASS: kuttl/harness/overrides_openshift-false_spark-4.1.2 (172.69s)
        --- PASS: kuttl/harness/logging_openshift-false_spark-logging-4.1.2_ny-tlc-report-0.3.0 (389.54s)
        --- PASS: kuttl/harness/resources_openshift-false_spark-4.1.2 (68.20s)
        --- PASS: kuttl/harness/spark-history-server_openshift-false_spark-4.1.2_s3-use-tls-true (270.77s)
        --- PASS: kuttl/harness/spark-connect_openshift-false_iceberg-latest-1.11.0_hive-iceberg-4.0.0_spark-connect-4.1.2_s3-use-tls-true (321.95s)
        --- PASS: kuttl/harness/transit-encryption_openshift-false_spark-4.1.2 (64.87s)
        --- PASS: kuttl/harness/signal-propagation_openshift-false_spark-4.1.2 (61.78s)
        --- PASS: kuttl/harness/delta-lake_openshift-false_spark-delta-lake-4.1.2 (437.66s)
        --- PASS: kuttl/harness/pyspark-ny-public-s3_openshift-false_spark-4.1.2 (136.85s)
        --- PASS: kuttl/harness/product-config-compat_openshift-false_spark-regression-3.5.8 (36.15s)
        --- PASS: kuttl/harness/hbase-connector_openshift-false_spark-hbase-connector-3.5.8_hbase-2.6.6_hdfs-latest-3.5.0_zookeeper-latest-3.9.5 (697.86s)
        --- PASS: kuttl/harness/graceful-shutdown_openshift-false_spark-4.1.2 (116.04s)
        --- PASS: kuttl/harness/config-overrides_openshift-false_spark-4.1.2 (75.18s)
        --- PASS: kuttl/harness/iceberg_openshift-false_spark-iceberg-4.1.2_iceberg-latest-1.11.0 (88.64s)
        --- PASS: kuttl/harness/smoke_openshift-false_spark-4.1.2_s3-use-tls-true (182.19s)
        --- PASS: kuttl/harness/pyspark-ny-public-s3-image_openshift-false_spark-4.1.2_ny-tlc-report-0.3.0 (134.11s)
PASS

@sweb
sweb enabled auto-merge September 10, 2026 14:32
@sweb
sweb added this pull request to the merge queue Sep 10, 2026
Merged via the queue into main with commit fcdb273 Sep 10, 2026
13 checks passed
@sweb
sweb deleted the fix/use-pull-policy branch September 10, 2026 14:42
@adwk67 adwk67 moved this from Development: In Review to Development: Done in Stackable Engineering Sep 14, 2026
@lfrancke lfrancke moved this from Development: Done to Acceptance: In Progress in Stackable Engineering Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Acceptance: In Progress

Development

Successfully merging this pull request may close these issues.

3 participants